unit RelatorioHistorico;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UFormRelatorio, QRCtrls, DB, DBTables, QuickRpt, ExtCtrls,
  StdCtrls;

type
  TFRelatorioHistorico = class(TFormRelatorio)
    QRBand3: TQRBand;
    QRDBText1: TQRDBText;
    QRDBText2: TQRDBText;
    QRLabel11: TQRLabel;
    QRLabel5: TQRLabel;
    procedure FormCreate(Sender: TObject);
    procedure QRLNomeRelatorioPrint(sender: TObject; var Value: String);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FRelatorioHistorico: TFRelatorioHistorico;

implementation

uses UGeral;

{$R *.dfm}

procedure TFRelatorioHistorico.FormCreate(Sender: TObject);
begin
  inherited;
 QRelatorio.Close;
 QRelatorio.SQL.Clear;
 QRelatorio.SQL.Add('Select Emp_Razao as Razao from empresa ');
 QRelatorio.SQL.Add('Where Emp_Codigo = :Cod ');
 QRelatorio.ParamByName('Cod').AsInteger:=Codigoempresa;
 QRelatorio.Open;
 QRLNomeEmpresa.Caption:=QRelatorio.fieldByname('Razao').AsString;

end;

procedure TFRelatorioHistorico.QRLNomeRelatorioPrint(sender: TObject;
  var Value: String);
begin
  inherited;
value:='';
end;

end.
